import { ActionContext } from 'vuex'
import * as $api from '@/api/system'
import * as $model from '@/api/model/systemModel'
import { IStore } from '../types'
import { fundTypeReports, fundTypeReportsExport, fundTypeReportsTotal } from '@/api/report'
// eslint-disable-next-line @typescript-eslint/ban-types
export type IReportState = {}

const state = {}

const mutations = {}

const actions = {
  async fundTypeReports({}: ActionContext<IReportState, IStore>, params: any) {
    return await fundTypeReports(params)
  },
  async fundTypeReportsTotal({}: ActionContext<IReportState, IStore>, params: any) {
    return await fundTypeReportsTotal(params)
  },
  async fundTypeReportsExport({}: ActionContext<IReportState, IStore>, params: any) {
    return await fundTypeReportsExport(params)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
